package com.fsnbigdata.service.api;

import com.fsnbigdata.domain.Log;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Author:
 * @Date: Created in 19:02 2018/9/29
 * @Modified By:
 */

public interface LogService {

    Log findById(Long id);

    Log save(Log log);
    
    List<Log> findAll();

    List<Log> findAllByTime(String startTime, String endTime,String type,String key);
    
    void deleteOne(Long id);
    
    void delete(Iterable<Long> ids);

    Log update(Log zhExpert);
    
    Page<Log> findByPageAndSize(String startTime, String endTime, String creator, String genre,String description,Pageable pageable);

    List<Log> findAllByType(String type);

    List queryList(String type, Pageable pageable);

    Long getCount(String type, String name, long oldTime, long nowTime);

    List<Log> findAllByBeforeTime(long nowTime,long beforeTime,String genre);

    List chartCount(String status, String startTime, String endTime, String description, String creator);
}
